package sdu.icat.forum.smodel;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.CreationTimestamp;

/**
 * 个人收藏
 * @author ljh_2015
 *
 */
@Entity
@Table(name="collectors")
public class Collectors {

    @Id
    @GeneratedValue
    private Long id;
    
    /**
     * 收藏夹名称
     */
    private String collectName;
    
    @CreationTimestamp
    @Temporal(TemporalType.TIMESTAMP)
    private Date creatTime;
    
    @Column(length=500)
    private String description;
    
    private String tags;
    
    /**
     * 头像
     */
    private String collectAvatar;
    
    private Long userId;
    
    private String userName;

    /**
     * 状态
     * 1、正常
     * 2、封禁
     * 3、恢复
     */
    private int status;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCollectName() {
        return collectName;
    }

    public void setCollectName(String collectName) {
        this.collectName = collectName;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCollectAvatar() {
        return collectAvatar;
    }

    public void setCollectAvatar(String collectAvatar) {
        this.collectAvatar = collectAvatar;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    
    
}
